<pre class="docs-method-signature"><code>rect.toJSON()</code></pre>
<p>Return the rectangle as a simple JSON object. For example: <code>{ "x": 0, "y": 0, "width": 40, "height": 40 }</code>.</p>
